import React from 'react';
import { Router, Route, Switch } from 'dva/router';
import Example from './component/Example'; // 导入页面组件

function RouterConfig({ history }) {
  return (
    <Router history={history}>
      <Switch>
        <Route path="/example" component={Example} /> {/* 配置路由 */}
      </Switch>
    </Router>
  );
}

export default RouterConfig;